/**
 * Copyright:Copyright(c)2014-2017
 * Company:厦门市易致达物联网科技有限公司
 * @version 1.0
 */
package shop.services.manage.proxyfirstcheck.dao.impl;

import java.util.List;

import shop.core.common.dao.BaseDao;
import shop.core.common.dao.page.PagerModel;
import shop.services.manage.proxyfirstcheck.bean.Proxyfirstcheck;
import shop.services.manage.proxyfirstcheck.dao.ProxyfirstcheckDao;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;

/**
 * @类名称：ProxyfirstcheckDaoImpl
 * @创建人：wzl
 * @创建时间：2018-06-01 下午20:36:34  
 * @版本号：1.0
 * @描述：
 */
@Repository("proxyfirstcheckDaoManage")
public class ProxyfirstcheckDaoImpl  implements ProxyfirstcheckDao {

    @Resource
    private BaseDao dao;

    public void setDao(BaseDao dao) {
        this.dao = dao;
    }

    public PagerModel selectPageList(Proxyfirstcheck e) {
        return dao.selectPageList("manage.proxyfirstcheck.selectPageList","manage.proxyfirstcheck.selectPageCount", e);
    }

    public List selectList(Proxyfirstcheck e) {
        return dao.selectList("manage.proxyfirstcheck.selectList", e);
    }

    public Proxyfirstcheck selectOne(Proxyfirstcheck e) {
        return (Proxyfirstcheck) dao.selectOne("manage.proxyfirstcheck.selectOne", e);
    }

    public int delete(Proxyfirstcheck e) {
        return dao.delete("manage.proxyfirstcheck.delete", e);
    }

    public int update(Proxyfirstcheck e) {
        return dao.update("manage.proxyfirstcheck.update", e);
    }

    public int deletes(String[] ids) {
        Proxyfirstcheck e = new Proxyfirstcheck();
        for (int i = 0; i < ids.length; i++) {
            e.setId(ids[i]);
            delete(e);
        }
        return 0;
    }

    public int insert(Proxyfirstcheck e) {
        return dao.insert("manage.proxyfirstcheck.insert", e);
    }

    public int deleteById(int id) {
        return dao.delete("manage.proxyfirstcheck.deleteById", id);
    }

    @Override
    public Proxyfirstcheck selectById(String id) {
        return (Proxyfirstcheck) dao.selectOne("manage.proxyfirstcheck.selectById", id);
    }

}

